﻿using System;
using GodProject.console;

namespace GodProject
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine(Messages.Welcome);
      Console.WriteLine(Messages.Description);

      try
      {
        GodConsole godConsole = new GodConsole();
        godConsole.Run();
      }
      catch (SundayDayException)
      {
        WriteSundayError();
        WriteExitByError();
      }
      catch (WrongInputException)
      {
        WriteNotANumberError();
        WriteExitByError();
      }
    }

    private static void WriteExitByError()
    {
      Console.WriteLine(Messages.ExitByError);
    }

    private static void WriteSundayError()
    {
      Console.WriteLine(Messages.SundayError);
    }
    private static void WriteNotANumberError()
    {
      Console.WriteLine(Messages.ErrorNotANumber);
    }


  }


}
